import 'package:dio/dio.dart';
const leading='order';

Future<Response<dynamic>> getAllOrders({required Dio dio}) async {
  Response<dynamic> response = await dio.post('/$leading/all');
  return response;
}

Future<Response<dynamic>> addOrder({
  required Map<String, dynamic> order,
  required Dio dio,
}) async {
  Response<dynamic> response = await dio.post('/$leading/add', data: order);
  return response;
}

Future<Response<dynamic>> updateOrder({
  required Map<String, dynamic> order,
  required Dio dio,
}) async {
  Response<dynamic> response = await dio.post('/$leading/update', data: order);
  return response;
}
